finding the acceleration from a curved graph